OCRGetTextPreviousStatement

Note: This statement is deprecated. Use OCRGetText instead. See OCRGetText.

Returns the text found using OCR in the screenshot captured for the action performed in the previous statement.

Syntax

OCRGetTextPreviousStatement(Region, LeftEdgePixel, TopEdgePixel, RectangleWidth, RectangleHeight)

Arguments

Argument Description
Region OCR region to check. OCRWindowRelative uses the pixel locations relative to the window that last had an action performed in it. OCRControlRelative uses the pixel locations relative to the control that last had an action performed on it.
LeftEdgePixel Integer pixel value of the left side of the region that contains the text.
TopEdgePixel Integer pixel value of the top side of the region that contains the text.
RectangleWidth Integer pixel value of the width of the region that contains the text.
RectangleHeight Integer pixel value of the height of the region that contains the text.

Return value

Value Description
Value Text found using OCR.

Example

ocrText = OCRGetTextPreviousStatement(OCRWindowRelative, 123, 175, 100, 100)

PrintLn(ocrText)